package edu.fiu.cis.personalize.server.berkDB.serializers;

import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.bind.tuple.TupleInput;
import com.sleepycat.bind.tuple.TupleOutput;

public class IntegerSerializer extends TupleBinding<Integer>
{

	@Override
	public Integer entryToObject(TupleInput arg0) {
		return arg0.readInt();
	}

	@Override
	public void objectToEntry(Integer arg0, TupleOutput arg1) {
		arg1.writeInt(arg0);
	}

}
